package com.sjzd.meeting.service.impl;

import com.sjzd.meeting.dao.AdminUserDAO;
import com.sjzd.meeting.pojo.AdminUser;
import com.sjzd.meeting.service.IAdminUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminUserServiceImpl implements IAdminUserService {

    @Autowired
    private AdminUserDAO adminUserDAO;


    @Override
    public AdminUser login(String username, String password) {
//        return adminUserDAO.selectByPrimaryKey("1");
        return adminUserDAO.login(username, password);
    }

    @Override
    public int update(AdminUser admin) {
        return adminUserDAO.updateByPrimaryKey(admin);
    }
}
